import login from '@/components/login'
import frame from '@/components/frame'
import Dashboard from "@/components/index"
import ClientPlatformManagement from "@/components/client"
import SmsTemplate from "@/components/sms"
import UsersManager from "@/components/user"
import memberEdit from "@/components/user/member/memberEdit"
import UserGroupManagement from "@/components/user/group/home"
import ApiManagement from "@/components/api"
import CompanyManagement from "@/components/company"
import MailConfigManagement from "@/components/mail/mailConf"
import MailPointsManagement from "@/components/mail/mailPoint"
import MessageTemplateManagement from "@/components/message"
import EditMessageTemplateManagement from "@/components/message/EditMessageTemplate"
import AppManagemenent from "@/components/app"
import PaymentsManagement from "@/components/payment"
import QaEdit from "@/components/qa/edit"
import QaEditManage from "@/components/qa/editManage"
import QaInstanceManage from "@/components/qa/instanceManage"
import WXregistered from "@/components/wx/registered"
import hospital from "@/components/outpatient/hospital"
import section from "@/components/outpatient/section"
import repertory from "@/components/outpatient/schedule"
import iconView from "@/components/icons/index"
import registerFee from "@/components/outpatient/registerFee"
import commodity from "@/components/commodity/goodsManagement"
// import stock from "@/components/stock/stockType"
import departmentType from "@/components/departmentManagement/departmentType"
import departmentManagement from "@/components/departmentManagement/departmentManagement"
import goodsType from "@/components/commodity/goodsType"
import VerifiedManagement from "@/components/user/VerifiedManagement"
import order from "@/components/order/order"
// import createOrder from "@/components/order/createOrder"
import account from "@/components/payAndAcount/acount"
import pay from "@/components/payAndAcount/pay"
import target from "@/components/user/targetManagement/targetManagement"
import databaseFood from "@/components/database/foodManagement"
import databaseMedicine from "@/components/database/medicine"
import databaseDisease from "@/components/database/disease"
import databaseAcupoint from "@/components/database/acupoint"
import databaseSport from "@/components/database/sportManagement/sport"
import physical from "@/components/database/physicalManagement"
import annualHealthTrend from "@/components/database/annualHealthTrend"
import activityProperties from "@/components/activity/activityProperties/index"
import activity from "@/components/activity"
import activityAction from "@/components/activity/activityAction"
import coupon from "@/components/coupon"
import massage from "@/components/database/massage"
import actShareAccess from "@/components/activity/activityShareAccess"
import adManagement from "@/components/app/adManagement/index"
import computeManagement from "@/components/compute"

import MenuManagement from "@/components/weixin"
import MenuEdit from "@/components/weixin/MenuEdit"


const menuList =  [
  {
    name:"登陆",
    href:"/login",
    hidden:true,
    component: login
  },
  {
    name:"首页",
    href:"/index",
    icon:"regular/bookmark",
    parentComponent: frame,
    component: Dashboard
  },
  {
    name:"系统管理",
    href:"/system",
    icon:"cogs",
    component: frame,
    children:[
      {
        name:"接口管理",
        href:"/system/api-management",
        icon:"cog",
        component:ApiManagement
      },
      {
        name:"公司管理",
        href:"/system/company-management",
        icon:"cog",
        component:CompanyManagement
      }
    ]
  },
  {
    name:"账户管理",
    href:"/user",
    icon:"users",
    component: frame,
    children: [
      {
        name:"用户管理",
        href:"/user/user-management",
        icon:"user",
        component: UsersManager
      },
      {
        name:"用户编辑",
        href:"/user/member-edit/:id",
        icon:"user",
        hidden:true,
        component: memberEdit
      },
      {
        name:"组管理",
        href:"/user/group-management",
        icon:"users",
        component: UserGroupManagement
      },
      {
        name:"实名认证",
        href:"/user/verified-management",
        icon:"users",
        component: VerifiedManagement
      },
      {
        name:"标签管理",
        href:"/user/target-management",
        icon:"users",
        component: target
      }
    ]
  },
  {
    name:"客户端管理",
    href:"/client",
    icon:"desktop",
    component: frame,
    children:[
      {
        name:'客户端编辑',
        href:'/client/client-management',
        icon:'desktop',
        component : ClientPlatformManagement
      },
      {
        name:'邮件地址管理',
        href:'/client/mail',
        icon:'desktop',
        component : MailConfigManagement
      }
    ]
  },
  {
    name:"数据库管理",
    href:"/database",
    icon:"desktop",
    component: frame,
    children:[
      {
        name:'食品库',
        href:'/database/food-management',
        icon:'desktop',
        component : databaseFood
      },
      {
        name:'药品库',
        href:'/database/medicine-management',
        icon:'desktop',
        component : databaseMedicine
      },
      {
        name:'疾病种类',
        href:'/database/disease-management',
        icon:'desktop',
        component : databaseDisease
      },
      {
        name:'穴位库',
        href:'/database/acupoint-management',
        icon:'desktop',
        component : databaseAcupoint
      },
      {
        name:'运动库',
        href:'/database/sport-management',
        icon:'desktop',
        component : databaseSport
      },
      {
        name:'体质管理',
        href:'/database/physical-management',
        icon:'desktop',
        component : physical
      },
      {
        name:'年运数据',
        href:'/database/annualHealthTrend-management',
        icon:'desktop',
        component : annualHealthTrend
      },
      {
        name:'推拿手法',
        href:'/database/massage-management',
        icon:'desktop',
        component : massage
      },
    ]
  },
  {
    name:"App管理",
    href:"/app",
    icon:"brands/whatsapp",
    component: frame,
    children:[
      {
        name:'App管理',
        href:'/app/management',
        icon:'brands/whatsapp',
        component : AppManagemenent
      }
    ]
  },
  {
    name:"广告管理",
    href:"/ad",
    icon:"brands/whatsapp",
    component: frame,
    children:[
      {
        name:'广告管理',
        href:'/ad/adManagement',
        icon:'brands/whatsapp',
        component : adManagement
      }
    ]
  },
  {
    name:"统计管理",
    href:"/computeManagement",
    icon:"brands/whatsapp",
    component: frame,
    children:[
      {
        name:'统计管理',
        href:'/computeManagement/index',
        icon:'brands/whatsapp',
        component : computeManagement
      }
    ]
  },
  {
    name:"问卷管理",
    href:"/qa",
    icon:"regular/question-circle",
    component: frame,
    children: [
      {
        name:'编辑问卷',
        href:'/qa/edit-manage',
        icon:'regular/question-circle',
        component : QaEditManage
      },
      {
        name:'编辑问卷',
        href:'/qa/edit/:id',
        icon:'regular/question-circle',
        hidden:true,
        component : QaEdit
      },
      {
        name:'问卷实例',
        href:'/qa/instance',
        icon:'regular/question-circle',
        component : QaInstanceManage
      },
    ]
  },
  {
    name:"消息管理",
    href:"/message",
    icon:"regular/envelope",
    component: frame,
    children:[
      {
        name:'消息模板管理',
        href:'/message/template',
        icon:'regular/envelope-open',
        component : MessageTemplateManagement
      },
      {
        name:'消息模板编辑',
        href:'/message/template/:id',
        icon:'desktop',
        hidden: true,
        component : EditMessageTemplateManagement
      },
      {
        name:'消息名称管理',
        href:'/message/points',
        icon:'desktop',
        component : MailPointsManagement
      }
    ]
  },
  {
    name:"微信管理",
    href:"/wechat",
    icon:"brands/weixin",
    component: frame,
    children: [
      {
        name:'目录编辑',
        href:'/wechat/menu',
        icon:'brands/weixin',
        component : MenuManagement
      },
      {
        name:'菜单编辑',
        href:'/wechat/menu-edit/:id',
        icon:'brands/weixin',
        hidden:true,
        component : MenuEdit
      }
    ]
  },
  {
    name:"活动管理",
    href:"/activity",
    icon:"regular/calendar",
    component: frame,
    children:[
      {
        name:"活动",
        href:"/activity/activity-Management",
        icon:"regular/calendar",
        component:activity
      },
      {
        name:"活动属性",
        href:"/activity/activityProperties",
        icon:"regular/calendar",
        component:activityProperties
      },
      {
        name:"活动行为",
        href:"/activity/activityAction",
        icon:"regular/calendar",
        component:activityAction
      },
      {
        name:"分享与访问",
        href:"/activity/Share&Access",
        icon:"regular/calendar",
        component:actShareAccess
      },
      {
        name:"优惠券",
        href:"/activity/coupon-Management",
        icon:"regular/calendar",
        component:coupon
      },
    ]
  },
  {
    name:"部门管理",
    href:"/departmentManagement",
    icon:"regular/calendar",
    component: frame,
    children:[
      {
        name:"部门类型",
        href:"/departmentManagement/departmentType",
        icon:"regular/calendar",
        component:departmentType
      },
      {
        name:"部门管理",
        href:"/departmentManagement/departmentManagement",
        icon:"regular/calendar",
        component:departmentManagement
      }
    ]
  },
  {
    name:"门诊管理",
    href:"/outpatient",
    icon:"hospital-alt",
    component: frame,
    children:[
      {
        name:"科室管理",
        href:"/outpatient/section-management",
        icon:"clipboard-list",
        component:section
      },
      {
        name:"排班管理",
        href:"/outpatient/repertory-management",
        icon:"calendar-alt",
        component:repertory
      },
      {
        name:"挂号管理",
        href:"/outpatient/registerFee-management",
        icon:"check-circle",
        component:registerFee
      }
    ]
  },
  {
    name:"商品管理",
    href:"/commodity",
    icon:"boxes",
    component: frame,
    children: [
      {
        name:"商品类型",
        href:"/commodity/goodsType-management",
        icon:"calendar-alt",
        component:goodsType
      },
      {
        name:"商品管理",
        href:"/commodity/goods-management",
        icon:"check-circle",
        component:commodity
      }
    ]
  },
  // {
  //   name:"库存管理",
  //   href:"/stock",
  //   icon:"brands/fort-awesome",
  //   component: frame,
  //   children: [
  //     {
  //       name:"库存类型",
  //       href:"/stock/stockType-management",
  //       icon:"brands/fort-awesome",
  //       component:stock
  //     }
  //   ]
  // },
  // {
  //   name:"订单管理",
  //   href:"/order",
  //   icon:"regular/star",
  //   component: frame,
  //   children: [
  //     {
  //       name:"订单管理",
  //       href:"/order/order-management",
  //       icon:"brands/fort-awesome",
  //       component:order
  //     },
  //     {
  //       name:"新建订单",
  //       href:"/order/createOrder",
  //       icon:"check-circle",
  //       component:createOrder
  //     },
  //   ]
  // },
  {
    name:"支付与账户",
    href:"/payAndAcount",
    icon:"regular/star",
    component: frame,
    children: [
      {
        name:"账户管理",
        href:"/payAndAcount/acount-management",
        icon:"brands/fort-awesome",
        component:account
      },
      {
        name:"支付管理",
        href:"/payAndAcount/pay-management",
        icon:"check-circle",
        component:pay
      },
    ]
  },
  {
    name:"查看所有图标",
    href:"/icons",
    icon:"regular/star",
    parentComponent: frame,
    component: iconView,
  }
]
export default menuList
